package nc.ui.pub.config;

import java.util.HashMap;

public class NcSession {
	private NcSession() {
	}

	private static NcSession session = new NcSession();

	protected static HashMap<String, Object> map = new HashMap<String, Object>();
	public static void setAttribute(String key, Object value) {
		
		session.map.put(key, value);
	}
	public static Object getAttribute(String key) {
		Object returnObject=session.map.get(key);

		return returnObject;
	}
	public static boolean containsKey(String key) {
		return session.map.containsKey(key);
	}


	public static void removeAttribute(String key) {
		session.map.remove(key);
	}
}
